package org.daochong.fastdev;

public abstract class DefaultPathContextFilter implements IPathContextFilter {

	private String operType;

	private String operData;

	private String operPath;

	@Override
	public boolean needFilter(Context context) {
		return ((this.getOperType() == null || this.getOperType().equals(context.getOperData()))
				&& (this.getOperPath() == null || this.getOperPath().equals(context.getOperPath()))
				&& (this.getOperData() == null || this.getOperData().equals(context.getOperData())));

	}

	public String getOperType() {
		return operType;
	}

	public void setOperType(String operType) {
		this.operType = operType;
	}

	public String getOperData() {
		return operData;
	}

	public void setOperData(String operData) {
		this.operData = operData;
	}

	public String getOperPath() {
		return operPath;
	}

	public void setOperPath(String operPath) {
		this.operPath = operPath;
	}

}
